package cn.com.pajx.pajx_smart_platform.ui.activity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Handler;
import android.view.View;
import android.widget.ImageView;

import butterknife.BindView;
import cn.com.pajx.pajx_smart_platform.R;

/**
 * 启动页
 */
@SuppressLint("CustomSplashScreen")
public class SplashActivity extends BaseActivity {

    @Override
    protected void beforeSetContentView() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void initView() {
        //跳转页面
        skip2MainActivity();
    }

    /**
     * 页面跳转
     */
    private void skip2MainActivity() {
        new Handler().postDelayed(() -> {
            startActivity(new Intent(mContext, MainActivity.class));
            finish();
        }, 1500);
    }
}
